package com.observer.demo3;

//JobSeeker实现了Observer接口，实际上就是订阅者：
public class JobSeeker implements Observer {
	
	private String name;

	public JobSeeker(String name){
		this.name = name;
	}

	@Override
	public void update(Subject subject) {
		System.out.println(this.name + " got notified!");
		System.out.println(subject);
	}

}
